from tools.sdlgl import *
from tools.pathlist import *

if os.name == 'nt':
    tools=['mingw']
else:
    tools=['default']

env = Environment(tools=tools)

opts = Options(['options.cache'], ARGUMENTS)
add_SDL_GL_Options(opts)
opts.AddOptions(PathListOption("extra_prefixes", "where some dependencies are installed"))
opts.Update(env)
Help(opts.GenerateHelpText(env))
opts.Save('options.cache', env)

config_SDL_GL(env)
ParsePrefixes(env,"extra_prefixes")

env.Program(target='sdlgl',source=['main.cpp','impl.cpp'])

